import http from '@/request/request.js'
// 用户提现
export const usersWithdrawal = (data) => {
  return http.post('/users/withdrawal', data)
}

//服务商提现
export const usersWithdrawalServer = (data) => {
  return http.post('/users/serverWithdrawal', data)
}

//服务点提现
export const usersWithdrawalServerPoint = (data) => {
  return http.post('/users/serverpointwithdrawal', data)
}

// 提现记录
export const withdrawalRecords = (data) => {
  return http.post('/users/withdrawal_records', data)
}
// 提交推荐服务商
export const recommendationServer = (data) => {
  return http.post('/Users/recommendation_server', data)
}
// 推荐服务商历史记录
export const serverHistory = (data) => {
  return http.post('/Users/serverhistory', data)
}
// 服务商中心
export const servercore = (data) => {
  return http.post('/Users/servercore', data)
}
// 服务商信息管理
export const serversdata = (data) => {
  return http.post('/users/serversdata', data)
}

// 服务商添加银行卡
export const addbank = (data) => {
  return http.post('/users/addbank', data)
}
// 服务商银行卡列表
export const bankData = (data) => {
  return http.post('/users/banklist', data)
}
//服务商列表  
export const getServiceList = (data) => {
  return http.post('/servers/lists', data)
}
//服务点列表 
export const getServicePointList = (data) => {
  return http.post('/Users/service_point_list', data)
}
//获取服务商列表 
export const getServerNames = (data) => {
  return http.post('/servers/serversname', data)
}
//获取服务商中心服务点订单列表 
export const getServerPointOrderList = (data) => {
  return http.post('/users/service_point_orders_list', data)
}

//获取服务商中心订单收益
export const getServerRevenue = (data) => {
  return http.post('/Users/server_revenue_details', data)
}


// 服务点中心
export const serverPointcore = (data) => {
  return http.post('/Users/serverpointcore', data)
}

// 服务点添加银行卡
export const addbankServerPoint = (data) => {
  return http.post('/users/addserverbank', data)
}
// 服务点银行卡列表
export const bankDataServerPoint = (data) => {
  return http.post('/users/serverbanklist', data)
}

//获取服务点中心订单列表 
export const getOrderListServerPoint = (data) => {
  return http.post('/Users/orders_list', data)
}

//获取服务点中心订单收益
export const getServerRevenueServerPoint = (data) => {
  return http.post('/Users/ServicePointRevenueDetails', data)
}